<template>
	<view class="show">
		<notice-list v-if="showId == 1" :noticeListData="noticeListData" @refData="refData"
			@cleanSystemMsg="cleanSystemMsg">
		</notice-list>
		<notice-list-my v-if="showId == 0" :noticeListData="noticeListData" @cleanSystemMsg="cleanSystemMsg">
		</notice-list-my>
	</view>
</template>

<script>
	import noticeListMy from './notice-list-my.vue'
	import noticeList from './notice-list.vue'

	export default {
		components: {
			noticeList,
			noticeListMy
		},
		props: ['noticeListData', 'showId'],
		methods: {
			refData() {
				this.$emit('refData')
			},
			cleanSystemMsg(sysIds) {
				this.$emit('cleanSystemMsg', sysIds)
			}
		}
	}
</script>

<style>
</style>
